Gaudi Framework, version v23r0 |
Home | Generated: Mon Jan 30 2012 |
specialization of Bounded verifier for for C-arrays More...
#include <CArrayAsProperty.h>
Public Member Functions | |
BoundedVerifier () | |
Constructors. | |
virtual | ~BoundedVerifier () |
Destructor. | |
bool | isValid (const typename Traits::CVal value) const |
Check if the value is within bounds. | |
bool | hasLower () const |
Return if it has a lower bound. | |
bool | hasUpper () const |
Return if it has a lower bound. | |
Traits::CRef | lower () const |
Return the lower bound value. | |
Traits::CRef | upper () const |
Return the upper bound value. | |
void | setLower (typename Traits::CRef value) |
Set lower bound value. | |
void | setUpper (typename Traits::CRef value) |
Set upper bound value. | |
void | clearLower () |
Clear lower bound value. | |
void | clearUpper () |
Clear upper bound value. | |
void | setBounds (typename Traits::CRef lower, typename Traits::CRef upper) |
Set both bounds (lower and upper) at the same time. | |
void | clearBounds () |
Clear both bounds (lower and upper) at the same time. | |
Private Types | |
typedef Gaudi::Utils::PropertyTypeTraits < T[N]> | Traits |
Private Attributes | |
bool | m_hasLowerBound |
Data and Function Members for This Class Implementation. | |
bool | m_hasUpperBound |
const T | m_lowerBound [N] |
const T | m_upperBound [N] |
specialization of Bounded verifier for for C-arrays
Definition at line 113 of file CArrayAsProperty.h.
typedef Gaudi::Utils::PropertyTypeTraits<T[N]> BoundedVerifier< T[N]>::Traits [private] |
Definition at line 116 of file CArrayAsProperty.h.
BoundedVerifier< T[N]>::BoundedVerifier | ( | ) | [inline] |
Constructors.
Definition at line 121 of file CArrayAsProperty.h.
: m_hasLowerBound ( false ) , m_hasUpperBound ( false ) {}
virtual BoundedVerifier< T[N]>::~BoundedVerifier | ( | ) | [inline, virtual] |
void BoundedVerifier< T[N]>::clearBounds | ( | ) | [inline] |
Clear both bounds (lower and upper) at the same time.
Definition at line 162 of file CArrayAsProperty.h.
{ clearLower(); clearUpper(); }
void BoundedVerifier< T[N]>::clearLower | ( | ) | [inline] |
Clear lower bound value.
Definition at line 150 of file CArrayAsProperty.h.
{ m_hasLowerBound = false; }
void BoundedVerifier< T[N]>::clearUpper | ( | ) | [inline] |
Clear upper bound value.
Definition at line 152 of file CArrayAsProperty.h.
{ m_hasUpperBound = false; }
bool BoundedVerifier< T[N]>::hasLower | ( | ) | const [inline] |
Return if it has a lower bound.
Definition at line 137 of file CArrayAsProperty.h.
{ return m_hasLowerBound; }
bool BoundedVerifier< T[N]>::hasUpper | ( | ) | const [inline] |
Return if it has a lower bound.
Definition at line 139 of file CArrayAsProperty.h.
{ return m_hasUpperBound; }
bool BoundedVerifier< T[N]>::isValid | ( | const typename Traits::CVal | value ) | const [inline] |
Check if the value is within bounds.
Definition at line 129 of file CArrayAsProperty.h.
{ return ( ( m_hasLowerBound && Traits::less ( *value , m_lowerBound ) ) ? false : true ) && ( ( m_hasUpperBound && Traits::less ( m_upperBound , *value ) ) ? false : true ) ; }
Traits::CRef BoundedVerifier< T[N]>::lower | ( | ) | const [inline] |
Return the lower bound value.
Definition at line 141 of file CArrayAsProperty.h.
{ return m_lowerBound; }
void BoundedVerifier< T[N]>::setBounds | ( | typename Traits::CRef | lower, |
typename Traits::CRef | upper | ||
) | [inline] |
void BoundedVerifier< T[N]>::setLower | ( | typename Traits::CRef | value ) | [inline] |
Set lower bound value.
Definition at line 146 of file CArrayAsProperty.h.
{ m_hasLowerBound = true; Traits::assign ( m_lowerBound , value ) ; }
void BoundedVerifier< T[N]>::setUpper | ( | typename Traits::CRef | value ) | [inline] |
Set upper bound value.
Definition at line 148 of file CArrayAsProperty.h.
{ m_hasUpperBound = true; Traits::assign ( m_upperBound , value ) ; }
Traits::CRef BoundedVerifier< T[N]>::upper | ( | ) | const [inline] |
Return the upper bound value.
Definition at line 143 of file CArrayAsProperty.h.
{ return m_upperBound; }
bool BoundedVerifier< T[N]>::m_hasLowerBound [private] |
Data and Function Members for This Class Implementation.
Data members
Definition at line 172 of file CArrayAsProperty.h.
bool BoundedVerifier< T[N]>::m_hasUpperBound [private] |
Definition at line 173 of file CArrayAsProperty.h.
const T BoundedVerifier< T[N]>::m_lowerBound[N] [private] |
Definition at line 174 of file CArrayAsProperty.h.
const T BoundedVerifier< T[N]>::m_upperBound[N] [private] |
Definition at line 175 of file CArrayAsProperty.h.